export interface LoginParams {
  username: string;
  password: string;
}

export interface CodeLoginParam {
  code: string;
}

export interface OauthTokenModel {
  tokenName: string;
  tokenValue: string;
  access_token: string;
  refresh_token: string;
  expires_in: number;
  refresh_expires_in: number;
  client_id: string;
  scope: string;
  openid: string;
}

export interface UserInfoModel {
  id: number;
  username: string;
  phone: number;
  email: string;
  nickName: string;
  profilePicture: string;
}

/**
 * @description: Get user information return value
 */
export interface GetUserInfoModel {
  userInfo: UserInfoModel;
  roles: string[];
  permissions: string[];
}
